#ifndef __DEF_IPTRANDIALOG_H__
#define __DEF_IPTRANDIALOG_H__

#include <wx/wx.h>
#include <wx/datectrl.h>
#include <wx/spinctrl.h>
#include "appconstant.h"
#include "dbkakeibo.h"
#include "de_dialog.h"
#include <vector>

class Input_PTranDialog: public wxDialog
{
public:
	Input_PTranDialog(wxWindow *parent);
	~Input_PTranDialog(void)
	{
		de_dialog->Close();
	}
	void ClearControl(void);
	void BindData_Periodical(DB_periodical &db);
	DB_periodical &GetData_Periodical(void);
protected:
	wxPanel *ipt_mainPanel;
		wxStaticText *ipt_InputedBaseInfoLabel;
		wxButton *ipt_InputBaseInfo;
		wxCheckBox *ipt_SetAfterInputValue;
		wxCheckBox *ipt_SetAfterInputMemo;
		wxChoice *ipt_PeriodicalTiming;
		wxSpinCtrl *ipt_TimingDay;
		wxRadioBox *ipt_CaseHolidayTiming;
	
	wxButton *ipt_OkBtn;
	wxButton *ipt_CanBtn;
	DetailEditor *de_dialog;

	void ipt_OkBtn_clicked(wxCommandEvent &event);
	void ipt_CanBtn_clicked(wxCommandEvent &event);
	void ipt_InputBaseInfo_clicked(wxCommandEvent &event);
	void ipt_PeriodicalTiming_selected(wxCommandEvent &event);

private:
	DECLARE_EVENT_TABLE()
	DB_periodical dbperiod;
	DB_day tmpdbday;
	bool isinputbase;
};



enum {
	input_ptran_ok = 160,
	input_ptran_can,
	input_ptran_baseinfo,
	input_ptran_periotiming
};
#endif